<template>
  <div>
    <h2>嵌套路由</h2>
   <router-link to='/index'>主页</router-link>
   <router-link to='/news'>新闻</router-link>
   <router-link to='/sports'>体育</router-link>
     <router-view></router-view>
    </div>
</template>

<script>
export default {

}
</script>

<style>
a {
 margin-right: 5px;
}
</style>